package com.SpringAOP.test_1_31_springaop.controller;

import com.SpringAOP.test_1_31_springaop.aspect.MyAspect;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {
    @RequestMapping("/t1")
    public String t1(){
        return "t1";
    }

    @MyAspect
    @RequestMapping("/t2")
    public String t2(){
        return "t2";
    }

    // 现在呢只想让 t2 生效 以及 hello里面的 h1 生效

}
